package com.hst.web.base.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


import com.hst.core.annotation.Comment;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_invitation_code")
@Comment("邀请码表")
public class TInvitationCode extends BaseEntity {

	@Id
	@Column(name = "invitation_code", length = 16, nullable = false)
	@Comment("邀请码")
	private String invitationCode;

	@Column(name = "op_create", length = 20, nullable = false)
	@Comment("生成人员")
	private String opCreate;

	@Column(name = "valid", nullable = false)
	@Comment("有效标识")
	private Integer valid = 1;
	
	@Column(name = "username", length = 20)
	@Comment("用户名/账号")
	private String userName;

	@Column(name = "registertime")
	@Comment("使用时间")
	private Timestamp registerTime;

	public String getInvitationCode() {
		return invitationCode;
	}

	public void setInvitationCode(String invitationCode) {
		this.invitationCode = invitationCode;
	}

	public String getOpCreate() {
		return opCreate;
	}

	public void setOpCreate(String opCreate) {
		this.opCreate = opCreate;
	}

	public Integer getValid() {
		return valid;
	}

	public void setValid(Integer valid) {
		this.valid = valid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Timestamp getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Timestamp registerTime) {
		this.registerTime = registerTime;
	}

}
